-
Notifications
You must be signed in to change notification settings - Fork 273
SYNTHESIZER: Synthesize loop assigns before loop invariants. #7458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportBase: 78.48% // Head: 78.48% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #7458 +/- ##
===========================================
- Coverage 78.48% 78.48% -0.01%
===========================================
Files 1663 1663
Lines 191136 191189 +53
===========================================
+ Hits 150017 150046 +29
- Misses 41119 41143 +24
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
6bd1bd5
to
019952e
Compare
while(lhs_pointer->type().id() != ID_pointer) | ||
{ | ||
INVARIANT( | ||
lhs_pointer->operands().size() > 0, | ||
" No pointer found in lhs of NULL-pointer checks."); | ||
lhs_pointer = &lhs_pointer->operands()[0]; | ||
} | ||
|
||
while(rhs_pointer->type().id() != ID_pointer) | ||
{ | ||
INVARIANT( | ||
rhs_pointer->operands().size() > 0, | ||
" No pointer found in lhs of NULL-pointer checks."); | ||
rhs_pointer = &rhs_pointer->operands()[0]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would a non-pointer-type operand really be acceptable here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is equal_exprt(pointer_object(p1), pointer_object(p2));
where p1
is a null pointer and p2
is a pointer-type operand. I will make it more explicitly.
ae7d464
to
dbbfd16
Compare
Loop invariants synthesis is dependent on loop-assigns clauses. So we don't target non assignable-violations until all assignable-violations are fixed.
dbbfd16
to
ff62607
Compare
Loop invariants synthesis is dependent on loop-assigns clauses. So we target non assignable-violations until all assignable-violations are fixed.